<?php
include_once "xAP-functions/webincludes.php";

if(intval($_GET["state"])==1){
	$sql="update xAP_Event set active=0 where EventID=".intval($_GET["id"]);
}else{
	$sql="update xAP_Event set active=1 where EventID=".intval($_GET["id"]);
}
dbexec($sql);


header("Location:index.php?page=".intval($_GET["page"]));

?>